<?php

namespace Mvc\App\Controller;

use Mvc\Core\Factory;

/**
 * Created by PhpStorm.
 * User: 554665488
 * Date: 2018-6-22
 * Time: 6:19
 * @description:
 * @Author: yfl
 * @QQ 554665488
 */
class UseController
{
    public function addUser()
    {
        $user = Factory::getModel('user');
        $data=$user->getInfo(1);
        var_dump($data);
//        var_dump($user);
        $user->notify([]);
    }

    function index2()
    {
        $db = Factory::getDatabase();
        $db->query("select * from user");
        $db->query("delete from user where id=1");
        $db->query("update user set name='rango2' where id=1");
    }
}